home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / X11 / XQueryPointer.z / XQueryPointer
Encoding:
Text File  |  2002-10-03  |  4.7 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXQQQQuuuueeeerrrryyyyPPPPooooiiiinnnntttteeeerrrr((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666)))) XXXXQQQQuuuueeeerrrryyyyPPPPooooiiiinnnntttteeeerrrr((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XQueryPointer - get pointer coordinates
  10.  
  11.      SSSSYYYYNNNNTTTTAAAAXXXX
  12.           Bool XQueryPointer(_d_i_s_p_l_a_y, _w, _r_o_o_t__r_e_t_u_r_n, _c_h_i_l_d__r_e_t_u_r_n,
  13.           _r_o_o_t__x__r_e_t_u_r_n, _r_o_o_t__y__r_e_t_u_r_n,
  14.                                _w_i_n__x__r_e_t_u_r_n, _w_i_n__y__r_e_t_u_r_n,
  15.           _m_a_s_k__r_e_t_u_r_n)
  16.                 Display *_d_i_s_p_l_a_y;
  17.                 Window _w;
  18.                 Window *_r_o_o_t__r_e_t_u_r_n, *_c_h_i_l_d__r_e_t_u_r_n;
  19.                 int *_r_o_o_t__x__r_e_t_u_r_n, *_r_o_o_t__y__r_e_t_u_r_n;
  20.                 int *_w_i_n__x__r_e_t_u_r_n, *_w_i_n__y__r_e_t_u_r_n;
  21.                 unsigned int *_m_a_s_k__r_e_t_u_r_n;
  22.  
  23.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  24.           _c_h_i_l_d__r_e_t_u_r_n
  25.                     Returns the child window that the pointer is
  26.                     located in, if any.
  27.  
  28.           _d_i_s_p_l_a_y   Specifies the connection to the X server.
  29.  
  30.           _m_a_s_k__r_e_t_u_r_n
  31.                     Returns the current state of the modifier keys and
  32.                     pointer buttons.
  33.  
  34.           _r_o_o_t__r_e_t_u_r_n
  35.                     Returns the root window that the pointer is in.
  36.  
  37.           _r_o_o_t__x__r_e_t_u_r_n
  38.           _r_o_o_t__y__r_e_t_u_r_n
  39.                     Return the pointer coordinates relative to the
  40.                     root window's origin.
  41.  
  42.           _w         Specifies the window.
  43.  
  44.           _w_i_n__x__r_e_t_u_r_n
  45.           _w_i_n__y__r_e_t_u_r_n
  46.                     Return the pointer coordinates relative to the
  47.                     specified window.
  48.  
  49.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  50.           The _X_Q_u_e_r_y_P_o_i_n_t_e_r function returns the root window the
  51.           pointer is logically on and the pointer coordinates relative
  52.           to the root window's origin.  If _X_Q_u_e_r_y_P_o_i_n_t_e_r returns
  53.           _F_a_l_s_e, the pointer is not on the same screen as the
  54.           specified window, and _X_Q_u_e_r_y_P_o_i_n_t_e_r returns _N_o_n_e to
  55.           child_return and zero to win_x_return and win_y_return.  If
  56.           _X_Q_u_e_r_y_P_o_i_n_t_e_r returns _T_r_u_e, the pointer coordinates returned
  57.           to win_x_return and win_y_return are relative to the origin
  58.           of the specified window.  In this case, _X_Q_u_e_r_y_P_o_i_n_t_e_r
  59.           returns the child that contains the pointer, if any, or else
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 10/3/02)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXQQQQuuuueeeerrrryyyyPPPPooooiiiinnnntttteeeerrrr((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666)))) XXXXQQQQuuuueeeerrrryyyyPPPPooooiiiinnnntttteeeerrrr((((3333XXXX11111111))))
  71.  
  72.  
  73.  
  74.           _N_o_n_e to child_return.
  75.  
  76.           _X_Q_u_e_r_y_P_o_i_n_t_e_r returns the current logical state of the
  77.           keyboard buttons and the modifier keys in mask_return.  It
  78.           sets mask_return to the bitwise inclusive OR of one or more
  79.           of the button or modifier key bitmasks to match the current
  80.           state of the mouse buttons and the modifier keys.
  81.  
  82.           _X_Q_u_e_r_y_P_o_i_n_t_e_r can generate a _B_a_d_W_i_n_d_o_w error.
  83.  
  84.      DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  85.           _B_a_d_W_i_n_d_o_w A value for a Window argument does not name a
  86.                     defined Window.
  87.  
  88.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  89.           XGetWindowAttributes(3X11), XQueryTree(3X11)
  90.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 10/3/02)
  130.  
  131.  
  132.  
  133.